package graph.filters;

import org.eclipse.jdt.core.IJavaElement;

public class IJavaElementElementTypeFilter implements IFilter<Integer, IJavaElement> {
	private Integer _etalon = null;
	
	@Override
	public void setEtalon(Integer node) {
		_etalon=node;				
	}
	
	@Override
	public boolean check(IJavaElement node) {
		if (_etalon==null)
			return false;
		if (_etalon==node.getElementType())
			return true;
		return false;
	}
}